Files
BANK e26cc685d0 feat(landing): modern pass + ownership section
- hero: rotating use-case line, count-up stats, GPU spec marquee
- new #why section: why dorm residents should own a PC (cloud/account risk,
  perpetual license collapse, subscription rental) with cited sources
  (NYT/The Verge 2022, Microsoft Q&A/Lifecycle) and a rent-vs-own calculator
- motion: 380ms reveals, hover lift, reading progress bar, reduced-motion paths
- nav drawer breakpoint 960px, JS-off fallback, section renumbering
2026-11-20 02:57:45 +07:00

2174 lines
37 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ==========================================================================
SFF-01 · Thin Case — landing page
โทน: กระดาษอุ่น + หมึกดำ + เขียวเข้ม (ไม่มีเงาฟุ้ง ไม่มี gradient)
ตัวอักษร: K2D (ฝังในโปรเจกต์) — ไทยมีหัว, ตัวเลข/ป้ายใช้ mono
========================================================================== */
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/k2d-400-thai.woff2") format("woff2");
unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/k2d-400-latin-ext.woff2") format("woff2");
unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/k2d-400-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+2010-2027;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("../fonts/k2d-500-thai.woff2") format("woff2");
unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("../fonts/k2d-500-latin-ext.woff2") format("woff2");
unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("../fonts/k2d-500-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+2010-2027;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/k2d-700-thai.woff2") format("woff2");
unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/k2d-700-latin-ext.woff2") format("woff2");
unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
font-family: "K2D";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/k2d-700-latin.woff2") format("woff2");
unicode-range: U+0000-00FF, U+2010-2027;
}
:root {
--paper: #f6f5f1;
--surface: #ffffff;
--ink: #17160f;
--ink-soft: #4b4a42;
--muted: #7d7b72;
--line: #e1ded4;
--line-strong: #c8c4b7;
--sand: #efeadf;
--accent: #1f4b3b;
--accent-ink: #123026;
--accent-soft: #e6eee8;
--mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
--wrap: 1180px;
--pad: clamp(20px, 5vw, 56px);
--radius: 3px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: "K2D", "Noto Sans Thai", system-ui, sans-serif;
font-weight: 400;
font-size: 17px;
line-height: 1.75;
-webkit-font-smoothing: antialiased;
}
img {
max-width: 100%;
display: block;
}
a {
color: inherit;
text-decoration: none;
}
h1,
h2,
h3,
h4 {
margin: 0;
font-weight: 700;
line-height: 1.25;
letter-spacing: -0.01em;
text-wrap: balance;
}
p {
margin: 0;
}
::selection {
background: var(--accent);
color: #fff;
}
.wrap {
width: 100%;
max-width: var(--wrap);
margin-inline: auto;
padding-inline: var(--pad);
}
.mono {
font-family: var(--mono);
font-size: 0.78em;
letter-spacing: 0.14em;
text-transform: uppercase;
font-weight: 500;
}
.skip {
position: absolute;
left: -9999px;
top: 0;
background: var(--ink);
color: #fff;
padding: 10px 16px;
z-index: 100;
}
.skip:focus {
left: 12px;
top: 12px;
}
/* ---------------------------------------------------------------- header */
.site-header {
position: sticky;
top: 0;
z-index: 50;
background: rgba(246, 245, 241, 0.92);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--line);
}
.site-header.is-stuck {
border-bottom-color: var(--line-strong);
}
.nav {
display: flex;
align-items: center;
gap: 28px;
height: 68px;
}
.brand {
display: flex;
align-items: baseline;
gap: 10px;
font-weight: 700;
font-size: 18px;
letter-spacing: -0.01em;
white-space: nowrap;
}
.brand span {
font-family: var(--mono);
font-size: 11px;
font-weight: 500;
letter-spacing: 0.16em;
color: var(--muted);
text-transform: uppercase;
}
.nav-links {
display: flex;
align-items: center;
gap: 22px;
margin-left: auto;
font-size: 15px;
color: var(--ink-soft);
}
.nav-links a {
padding-block: 6px;
border-bottom: 1px solid transparent;
}
.nav-links a:hover {
color: var(--ink);
border-bottom-color: var(--line-strong);
}
.nav-cta {
display: inline-flex;
align-items: center;
gap: 8px;
height: 38px;
padding-inline: 16px;
background: var(--ink);
color: #fff;
border-radius: var(--radius);
font-size: 15px;
font-weight: 500;
white-space: nowrap;
}
.nav-cta:hover {
background: var(--accent);
}
.nav-toggle {
display: none;
margin-left: auto;
width: 40px;
height: 40px;
border: 1px solid var(--line-strong);
border-radius: var(--radius);
background: transparent;
color: var(--ink);
align-items: center;
justify-content: center;
cursor: pointer;
}
.nav-toggle span {
display: block;
width: 16px;
height: 1.5px;
background: currentColor;
position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
content: "";
position: absolute;
left: 0;
width: 16px;
height: 1.5px;
background: currentColor;
}
.nav-toggle span::before {
top: -5px;
}
.nav-toggle span::after {
top: 5px;
}
/* ------------------------------------------------------------------ hero */
.hero {
padding-block: clamp(36px, 6vw, 76px) clamp(28px, 4vw, 44px);
border-bottom: 1px solid var(--line);
}
.hero-grid {
display: grid;
grid-template-columns: 1.02fr 0.98fr;
gap: clamp(28px, 5vw, 64px);
align-items: center;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 22px;
}
.eyebrow::before {
content: "";
width: 24px;
height: 1px;
background: var(--accent);
}
.hero h1 {
font-size: clamp(32px, 4.3vw, 54px);
line-height: 1.16;
letter-spacing: -0.03em;
}
.hero h1 .line {
display: block;
white-space: nowrap;
}
.hero h1 em {
font-style: normal;
border-bottom: 4px solid var(--accent);
padding-bottom: 2px;
}
.hero-sub {
margin-top: 24px;
max-width: 46ch;
color: var(--ink-soft);
font-size: clamp(16px, 1.6vw, 18px);
}
.hero-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 14px 18px;
margin-top: 32px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
height: 50px;
padding-inline: 24px;
border-radius: var(--radius);
border: 1px solid var(--ink);
background: var(--ink);
color: #fff;
font-family: inherit;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn:hover {
background: var(--accent);
border-color: var(--accent);
}
.btn-ghost {
background: transparent;
color: var(--ink);
border-color: var(--line-strong);
}
.btn-ghost:hover {
background: transparent;
color: var(--accent);
border-color: var(--accent);
}
.btn svg {
width: 16px;
height: 16px;
}
.hero-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 30px;
padding: 0;
list-style: none;
}
.hero-chips li {
font-family: var(--mono);
font-size: 11.5px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--ink-soft);
border: 1px solid var(--line-strong);
border-radius: 100px;
padding: 6px 12px;
}
/* hero media */
.hero-media {
position: relative;
}
.hero-frame {
position: relative;
background: #fdfcf9;
border: 1px solid var(--line-strong);
border-radius: var(--radius);
padding: clamp(14px, 2.4vw, 26px);
overflow: hidden;
}
.hero-frame img {
width: 100%;
height: auto;
filter: saturate(0.96) contrast(1.02);
}
.hero-tag {
position: absolute;
left: 0;
top: 0;
background: var(--ink);
color: #fff;
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.14em;
text-transform: uppercase;
padding: 7px 12px;
z-index: 2;
}
.hero-note {
display: flex;
justify-content: space-between;
gap: 16px;
margin-top: 12px;
font-size: 13.5px;
color: var(--muted);
}
.hero-note strong {
font-weight: 500;
color: var(--ink-soft);
}
/* ------------------------------------------------------------- stat band */
.stats {
border-bottom: 1px solid var(--line);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
.stat {
padding: 26px 24px 26px 0;
border-right: 1px solid var(--line);
}
.stat:last-child {
border-right: 0;
}
.stat b {
display: block;
font-size: clamp(26px, 3vw, 34px);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
}
.stat > span {
display: block;
margin-top: 6px;
font-size: 13.5px;
color: var(--muted);
}
.stat b .num {
font-variant-numeric: tabular-nums;
}
.stat b .unit {
margin-left: 3px;
font-size: 0.5em;
font-weight: 500;
letter-spacing: 0;
color: var(--muted);
white-space: nowrap;
}
/* --------------------------------------------------------------- section */
.section {
padding-block: clamp(56px, 8vw, 104px);
border-bottom: 1px solid var(--line);
scroll-margin-top: 68px;
}
.sec-head {
display: grid;
grid-template-columns: 0.9fr 1.1fr;
gap: 20px 48px;
align-items: end;
margin-bottom: clamp(28px, 4vw, 52px);
}
.sec-no {
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.16em;
color: var(--accent);
text-transform: uppercase;
display: block;
margin-bottom: 14px;
}
.sec-head h2 {
font-size: clamp(26px, 3.6vw, 42px);
letter-spacing: -0.02em;
}
.sec-head p {
color: var(--ink-soft);
font-size: 16.5px;
max-width: 52ch;
}
.sec-head p + p {
margin-top: 14px;
}
h3 {
font-size: 19px;
letter-spacing: -0.01em;
}
/* ----------------------------------------------------------------- cards */
.cards-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
background: var(--line);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
}
.card {
background: var(--surface);
padding: 26px 24px 28px;
}
.card-no {
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.14em;
color: var(--muted);
}
.card h3 {
margin: 12px 0 10px;
}
.card p {
font-size: 15px;
color: var(--ink-soft);
line-height: 1.72;
}
/* ------------------------------------------------------- compatibility */
.table-wrap {
overflow-x: auto;
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--surface);
-webkit-overflow-scrolling: touch;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 15px;
min-width: 680px;
}
thead th {
text-align: left;
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
font-weight: 500;
padding: 14px 18px;
border-bottom: 1px solid var(--line-strong);
background: #fbfaf7;
white-space: nowrap;
}
tbody td {
padding: 16px 18px;
border-bottom: 1px solid var(--line);
vertical-align: top;
color: var(--ink-soft);
}
tbody tr:last-child td {
border-bottom: 0;
}
tbody td strong {
color: var(--ink);
font-weight: 500;
}
tbody td small {
display: block;
margin-top: 4px;
font-size: 13px;
color: var(--muted);
}
.ok {
display: inline-flex;
align-items: center;
gap: 7px;
color: var(--accent);
font-weight: 500;
white-space: nowrap;
}
.ok::before,
.no::before {
content: "";
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
flex: none;
}
.no {
display: inline-flex;
align-items: center;
gap: 7px;
color: #8c5a3a;
font-weight: 500;
white-space: nowrap;
}
.wait {
display: inline-flex;
align-items: center;
gap: 7px;
color: var(--muted);
white-space: nowrap;
}
.wait::before {
content: "";
width: 7px;
height: 7px;
border-radius: 50%;
border: 1px solid currentColor;
}
.table-note {
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
margin-top: 14px;
font-size: 13px;
color: var(--muted);
}
.table-note a {
border-bottom: 1px solid var(--line-strong);
color: var(--ink-soft);
}
.table-note a:hover {
border-bottom-color: var(--accent);
color: var(--accent);
}
.checklist {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 40px;
margin-top: 34px;
padding: 0;
list-style: none;
border-top: 1px solid var(--line);
}
.checklist li {
display: flex;
gap: 12px;
padding: 15px 0;
border-bottom: 1px solid var(--line);
font-size: 15px;
color: var(--ink-soft);
}
.checklist li::before {
content: "";
flex: none;
width: 12px;
height: 7px;
margin-top: 8px;
border-left: 1.5px solid var(--accent);
border-bottom: 1.5px solid var(--accent);
transform: rotate(-45deg);
}
.checklist b {
color: var(--ink);
font-weight: 500;
}
/* ----------------------------------------------------------------- specs */
.specs-grid {
display: grid;
grid-template-columns: 1.02fr 0.98fr;
gap: clamp(28px, 4vw, 56px);
align-items: start;
}
.spec-list {
border-top: 1px solid var(--line-strong);
}
.spec-row {
display: grid;
grid-template-columns: 176px 1fr;
gap: 16px;
padding: 13px 0;
border-bottom: 1px solid var(--line);
font-size: 15px;
}
.spec-row dt {
color: var(--muted);
font-size: 14px;
}
.spec-row dd {
margin: 0;
color: var(--ink);
}
.spec-row dd small {
color: var(--muted);
font-size: 13px;
}
.diagram {
position: sticky;
top: 96px;
border: 1px solid var(--line);
background: var(--surface);
border-radius: var(--radius);
padding: 18px;
}
.diagram svg {
width: 100%;
height: auto;
display: block;
}
.diagram figcaption {
margin-top: 8px;
font-size: 12.5px;
color: var(--muted);
line-height: 1.6;
}
/* ------------------------------------------------------------- software */
.soft-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 22px;
}
.soft-group {
border: 1px solid var(--line);
background: var(--surface);
border-radius: var(--radius);
padding: 4px 22px 8px;
}
.soft-group-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 18px 0 14px;
border-bottom: 1px solid var(--line);
}
.soft-group-head h3 {
font-size: 17px;
}
.soft-group-head span {
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
.soft-item {
display: grid;
grid-template-columns: 1fr auto;
gap: 4px 12px;
padding: 13px 0;
border-bottom: 1px solid var(--line);
}
.soft-item:last-child {
border-bottom: 0;
}
.soft-item b {
font-weight: 500;
font-size: 15.5px;
color: var(--ink);
}
.soft-item p {
grid-column: 1 / -1;
font-size: 14px;
color: var(--muted);
line-height: 1.6;
}
.tag {
align-self: center;
font-family: var(--mono);
font-size: 9.5px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent);
background: var(--accent-soft);
border-radius: 2px;
padding: 3px 6px;
white-space: nowrap;
}
.tag-free {
color: #6b5a33;
background: #f2ecdd;
}
.soft-foot {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 26px;
padding-top: 22px;
border-top: 1px solid var(--line);
font-size: 14px;
color: var(--muted);
}
/* ------------------------------------------------------------------ wifi */
.wifi-grid {
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: clamp(28px, 4vw, 52px);
align-items: start;
}
.option-list {
display: grid;
gap: 1px;
background: var(--line);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
}
.option {
display: grid;
grid-template-columns: 40px 1fr;
gap: 14px;
background: var(--surface);
padding: 18px 20px;
}
.option-key {
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.08em;
color: var(--accent);
padding-top: 3px;
}
.option h3 {
font-size: 16.5px;
margin-bottom: 6px;
}
.option h3 small {
font-weight: 400;
font-size: 12.5px;
color: var(--muted);
margin-left: 8px;
letter-spacing: 0;
}
.option p {
font-size: 14.5px;
color: var(--ink-soft);
line-height: 1.65;
}
.steps {
counter-reset: step;
list-style: none;
margin: 0;
padding: 0;
border-top: 1px solid var(--line-strong);
}
.steps li {
counter-increment: step;
display: grid;
grid-template-columns: 34px 1fr;
gap: 14px;
padding: 14px 0;
border-bottom: 1px solid var(--line);
font-size: 15px;
color: var(--ink-soft);
}
.steps li::before {
content: counter(step, decimal-leading-zero);
font-family: var(--mono);
font-size: 11.5px;
letter-spacing: 0.08em;
color: var(--muted);
padding-top: 4px;
}
.steps b {
color: var(--ink);
font-weight: 500;
}
.warn {
margin-top: 26px;
border: 1px solid #d9cbb6;
background: #f5efe3;
border-radius: var(--radius);
padding: 20px 22px;
}
.warn h3 {
font-size: 15px;
letter-spacing: 0.02em;
margin-bottom: 10px;
}
.warn ul {
margin: 0;
padding-left: 18px;
font-size: 14px;
color: #4c4436;
line-height: 1.7;
}
.warn li + li {
margin-top: 6px;
}
.warn b {
font-weight: 500;
color: #2f2a20;
}
/* ------------------------------------------------------------------ faq */
.faq {
max-width: 860px;
border-top: 1px solid var(--line-strong);
}
.faq details {
border-bottom: 1px solid var(--line);
}
.faq summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 19px 0;
cursor: pointer;
font-size: 17px;
font-weight: 500;
list-style: none;
}
.faq summary::-webkit-details-marker {
display: none;
}
.faq summary::after {
content: "";
flex: none;
width: 11px;
height: 11px;
border-right: 1.5px solid var(--muted);
border-bottom: 1.5px solid var(--muted);
transform: rotate(45deg);
transition: transform 160ms ease;
margin-top: -4px;
}
.faq details[open] summary::after {
transform: rotate(-135deg);
margin-top: 4px;
}
.faq .answer {
padding: 0 0 22px;
max-width: 68ch;
font-size: 15px;
color: var(--ink-soft);
}
.faq .answer p + p {
margin-top: 10px;
}
/* ---------------------------------------------------------------- order */
.order {
background: var(--ink);
color: #f3f1ea;
border-bottom: 0;
}
.order .sec-no {
color: #8fae9f;
}
.order .sec-head h2 {
color: #fff;
}
.order .sec-head p {
color: #b9b7ad;
}
.order-grid {
display: grid;
grid-template-columns: 0.85fr 1.15fr;
gap: clamp(28px, 4vw, 52px);
align-items: start;
}
.price {
display: flex;
align-items: baseline;
gap: 10px;
font-size: 46px;
font-weight: 700;
letter-spacing: -0.03em;
}
.price span {
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.12em;
color: #b9b7ad;
font-weight: 400;
}
.price-note {
margin-top: 6px;
font-size: 14px;
color: #9d9b91;
}
.order-list {
margin: 26px 0 0;
padding: 0;
list-style: none;
border-top: 1px solid #35342c;
}
.order-list li {
display: flex;
gap: 12px;
padding: 12px 0;
border-bottom: 1px solid #35342c;
font-size: 14.5px;
color: #c9c7bd;
}
.order-list li::before {
content: "";
flex: none;
width: 12px;
height: 7px;
margin-top: 7px;
border-left: 1.5px solid #8fae9f;
border-bottom: 1.5px solid #8fae9f;
transform: rotate(-45deg);
}
.form {
background: #20201a;
border: 1px solid #3a3931;
border-radius: var(--radius);
padding: clamp(20px, 3vw, 30px);
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.field {
display: block;
margin-bottom: 16px;
}
.field span {
display: block;
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #9d9b91;
margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
width: 100%;
background: #16160f;
border: 1px solid #43423a;
border-radius: 2px;
color: #f3f1ea;
font-family: inherit;
font-size: 15px;
padding: 11px 12px;
line-height: 1.5;
}
.field textarea {
min-height: 84px;
resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
outline: none;
border-color: #8fae9f;
}
.form .btn {
width: 100%;
background: #f3f1ea;
color: var(--ink);
border-color: #f3f1ea;
}
.form .btn:hover {
background: #8fae9f;
border-color: #8fae9f;
color: var(--ink);
}
.form-hint {
margin-top: 12px;
font-size: 12.5px;
color: #8b897f;
line-height: 1.6;
}
.summary {
margin-top: 18px;
border-top: 1px solid #3a3931;
padding-top: 16px;
display: none;
}
.summary.is-open {
display: block;
}
.summary pre {
margin: 0 0 12px;
background: #16160f;
border: 1px solid #43423a;
border-radius: 2px;
padding: 14px;
font-family: var(--mono);
font-size: 12.5px;
line-height: 1.7;
color: #dedbd1;
white-space: pre-wrap;
word-break: break-word;
}
.summary-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.summary-actions .btn {
width: auto;
height: 42px;
padding-inline: 18px;
font-size: 14.5px;
}
.btn-line {
background: transparent;
color: #f3f1ea;
border: 1px solid #43423a;
}
.btn-line:hover {
background: transparent;
border-color: #8fae9f;
color: #8fae9f;
}
.order-contact {
margin-top: 32px;
padding-top: 22px;
border-top: 1px solid #35342c;
}
.order-contact h4 {
font-family: var(--mono);
font-size: 10.5px;
font-weight: 500;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #9d9b91;
margin-bottom: 6px;
}
.order-contact dl {
margin: 0;
}
.order-contact dl > div {
display: flex;
justify-content: space-between;
gap: 16px;
padding: 9px 0;
border-bottom: 1px solid #2c2b24;
font-size: 14px;
}
.order-contact dt {
color: #8b897f;
}
.order-contact dd {
margin: 0;
color: #d8d5cb;
text-align: right;
}
/* --------------------------------------------------------------- footer */
.site-footer {
background: var(--paper);
padding-block: 44px 32px;
font-size: 14px;
color: var(--muted);
}
.foot-grid {
display: grid;
grid-template-columns: 1.2fr 1fr 1fr;
gap: 28px;
}
.foot-grid h4 {
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--ink);
margin-bottom: 10px;
font-weight: 500;
}
.foot-brand {
font-size: 18px;
font-weight: 700;
color: var(--ink);
margin-bottom: 8px;
}
.foot-list {
list-style: none;
padding: 0;
margin: 0;
}
.foot-list li {
padding-block: 3px;
}
.foot-list a {
border-bottom: 1px solid transparent;
}
.foot-list a:hover {
border-bottom-color: var(--line-strong);
color: var(--ink);
}
.foot-bottom {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 10px 24px;
margin-top: 34px;
padding-top: 18px;
border-top: 1px solid var(--line);
font-size: 12.5px;
}
/* -------------------------------------------------------------- reveal */
.reveal {
opacity: 0;
transform: translateY(14px);
transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-in {
opacity: 1;
transform: none;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
.reveal {
opacity: 1;
transform: none;
transition: none;
}
}
/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
.hero-grid {
grid-template-columns: 1fr;
}
.hero-media {
order: -1;
max-width: 520px;
}
.sec-head {
grid-template-columns: 1fr;
align-items: start;
}
.specs-grid,
.wifi-grid,
.order-grid {
grid-template-columns: 1fr;
}
.diagram {
position: static;
}
.cards-3 {
grid-template-columns: 1fr 1fr;
}
.card:last-child {
grid-column: 1 / -1;
}
.soft-grid {
grid-template-columns: 1fr;
}
.foot-grid {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 960px) {
.nav {
gap: 12px;
}
.nav-links {
display: none;
position: absolute;
left: 0;
right: 0;
top: 100%;
background: var(--paper);
border-bottom: 1px solid var(--line);
flex-direction: column;
align-items: stretch;
gap: 0;
padding: 8px var(--pad) 16px;
font-size: 16px;
margin-left: 0;
}
.nav-links a {
padding: 12px 0;
border-bottom: 1px solid var(--line);
}
.nav-links.is-open {
display: flex;
}
.nav-toggle {
display: inline-flex;
}
.nav-cta {
order: 2;
margin-left: auto;
}
.nav-toggle {
order: 3;
}
}
@media (max-width: 760px) {
body {
font-size: 16px;
}
/* ตารางแบบการ์ด: หัวตารางซ่อน ป้ายมาจาก data-label */
.table-stack {
min-width: 0;
display: block;
}
.table-stack thead {
display: none;
}
.table-stack tbody,
.table-stack tr {
display: block;
}
.table-stack tr {
padding: 16px 18px;
border-bottom: 1px solid var(--line);
}
.table-stack tr:last-child {
border-bottom: 0;
}
.table-stack tbody td {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 16px;
padding: 4px 0;
border: 0;
font-size: 14px;
text-align: right;
}
.table-stack tbody td::before {
content: attr(data-label);
flex: none;
color: var(--muted);
font-size: 13px;
text-align: left;
}
.table-stack tbody td:first-child {
display: block;
text-align: left;
padding-bottom: 8px;
}
.table-stack tbody td:first-child::before {
content: none;
}
.table-stack tbody td strong {
font-size: 15.5px;
}
/* มือถือ: เอาหัวข้อขึ้นก่อนภาพ */
.hero-media {
order: 0;
margin-top: 10px;
}
.hero h1 .line {
white-space: normal;
}
.nav {
height: 62px;
gap: 12px;
}
.nav-links {
display: none;
position: absolute;
left: 0;
right: 0;
top: 100%;
background: var(--paper);
border-bottom: 1px solid var(--line);
flex-direction: column;
align-items: stretch;
gap: 0;
padding: 8px var(--pad) 16px;
font-size: 16px;
}
.nav-links a {
padding: 12px 0;
border-bottom: 1px solid var(--line);
}
.nav-links.is-open {
display: flex;
}
.nav-cta {
display: none;
}
.nav-toggle {
display: inline-flex;
}
.stats-grid {
grid-template-columns: 1fr 1fr;
}
.stat {
padding: 20px 16px 20px 0;
border-bottom: 1px solid var(--line);
}
.stat:nth-child(2n) {
border-right: 0;
padding-left: 18px;
}
.stat:nth-last-child(-n + 2) {
border-bottom: 0;
}
.cards-3 {
grid-template-columns: 1fr;
}
.checklist {
grid-template-columns: 1fr;
}
.spec-row {
grid-template-columns: 1fr;
gap: 2px;
}
.soft-foot {
grid-template-columns: 1fr;
}
.form-row {
grid-template-columns: 1fr;
}
.foot-grid {
grid-template-columns: 1fr;
}
.section {
scroll-margin-top: 62px;
}
.hero-note {
flex-direction: column;
gap: 2px;
}
}
@media (max-width: 520px) {
.hero-actions {
display: grid;
gap: 10px;
}
.hero-actions .btn {
width: 100%;
}
}
@media (max-width: 420px) {
.brand span {
display: none;
}
.price {
font-size: 38px;
}
}
/* ==========================================================================
MODERN PASS — motion, marquee, ownership section
อ้างอิงจังหวะจาก fastwork.com/selling: คำใหญ่, แถบวิ่ง, เปิดทีละชั้น
กติกา: reveal 300–400ms (ไม่เกิน 520ms) · hover 180ms · เคารพ reduced-motion
========================================================================== */
:root {
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-spring: cubic-bezier(0.22, 1.4, 0.36, 1);
--dur-1: 180ms;
--dur-2: 320ms;
--dur-3: 380ms;
}
/* แถบความคืบหน้าการอ่าน */
.progress {
position: fixed;
inset: 0 0 auto 0;
height: 2px;
background: var(--accent);
transform: scaleX(0);
transform-origin: 0 50%;
z-index: 60;
transition: transform 120ms linear;
}
/* เปิดเนื้อหาเร็วขึ้น + ไล่ทีละชิ้น */
.js .reveal {
opacity: 0;
transform: translateY(12px);
transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
transition-delay: var(--d, 0ms);
}
.js .reveal.is-in {
opacity: 1;
transform: none;
}
/* ปุ่ม/การ์ด: ยกเบา ๆ 180ms */
.lift {
transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) ease,
background-color var(--dur-1) ease;
}
@media (hover: hover) {
.lift:hover {
transform: translateY(-3px);
border-color: var(--accent);
}
.card.lift:hover .card-no {
color: var(--accent);
}
}
/* คำที่หมุนในหัวเรื่อง */
.rotator {
display: inline-grid;
overflow: hidden;
height: 1.18em;
vertical-align: bottom;
justify-items: start;
}
.rotator span {
grid-area: 1 / 1;
opacity: 0;
transform: translateY(64%);
transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
white-space: nowrap;
}
.rotator span.is-on {
opacity: 1;
transform: none;
}
.rotator span.is-out {
opacity: 0;
transform: translateY(-64%);
}
/* แถบวิ่ง */
.marquee {
overflow: hidden;
border-bottom: 1px solid var(--line);
background: var(--surface);
position: relative;
}
.marquee::before,
.marquee::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 64px;
z-index: 2;
pointer-events: none;
}
.marquee::before {
left: 0;
background: linear-gradient(90deg, var(--surface), rgba(255, 255, 255, 0));
}
.marquee::after {
right: 0;
background: linear-gradient(270deg, var(--surface), rgba(255, 255, 255, 0));
}
.marquee-track {
display: flex;
width: max-content;
animation: marq 40s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
animation-play-state: paused;
}
.marquee-track span {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 13px 22px;
border-right: 1px solid var(--line);
font-family: var(--mono);
font-size: 11.5px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--ink-soft);
white-space: nowrap;
}
.marquee-track span i {
font-style: normal;
color: var(--accent);
}
@keyframes marq {
to {
transform: translateX(-50%);
}
}
/* ------------------------------------------------------------------ why */
.why {
background: var(--ink);
color: #ece9df;
border-bottom: 0;
}
.why .sec-no {
color: #8fae9f;
}
.why-grid {
display: grid;
grid-template-columns: 1.02fr 0.98fr;
gap: clamp(28px, 4vw, 56px);
align-items: start;
}
.why h2 {
color: #fff;
font-size: clamp(28px, 3.6vw, 46px);
letter-spacing: -0.025em;
line-height: 1.16;
}
.why h2 mark {
background: none;
color: #fff;
box-shadow: inset 0 -0.34em 0 rgba(143, 174, 159, 0.28);
}
.why .lead {
color: #c3c0b5;
font-size: clamp(16.5px, 1.5vw, 19px);
max-width: 62ch;
}
.why .lead + .lead {
margin-top: 14px;
}
.why .lead strong {
color: #fff;
font-weight: 500;
}
.why-facts {
display: grid;
gap: 1px;
background: #35342c;
border: 1px solid #35342c;
border-radius: var(--radius);
overflow: hidden;
}
.fact {
background: #1c1c16;
padding: 18px 20px;
display: grid;
grid-template-columns: auto 1fr;
gap: 14px;
align-items: baseline;
}
.fact b {
font-size: clamp(24px, 2.6vw, 32px);
color: #fff;
font-weight: 700;
font-variant-numeric: tabular-nums;
line-height: 1;
}
.fact span {
font-size: 13.5px;
color: #a9a69b;
line-height: 1.55;
}
/* การ์ดหลักฐาน */
.evidence {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1px;
margin-top: clamp(32px, 4vw, 52px);
background: #35342c;
border: 1px solid #35342c;
border-radius: var(--radius);
overflow: hidden;
}
.ev {
background: #1c1c16;
padding: 24px 22px 22px;
display: flex;
flex-direction: column;
}
.ev-tag {
font-family: var(--mono);
font-size: 10.5px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #8fae9f;
}
.ev h3 {
color: #fff;
font-size: 18.5px;
margin: 10px 0 10px;
letter-spacing: -0.01em;
}
.ev p {
font-size: 14.5px;
line-height: 1.7;
color: #b6b3a8;
}
.ev p + p {
margin-top: 8px;
}
.ev-src {
margin-top: auto;
padding-top: 14px;
border-top: 1px solid #35342c;
font-size: 12px;
color: #8b897f;
line-height: 1.6;
}
.ev-src a {
color: #ccd6ce;
border-bottom: 1px solid #47574d;
}
.ev-src a:hover {
border-bottom-color: #8fae9f;
}
/* รายการความเป็นเจ้าของ */
.own {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0 30px;
margin: 0;
padding: 0;
list-style: none;
border-top: 1px solid #35342c;
}
.own li {
display: flex;
gap: 12px;
padding: 15px 0;
border-bottom: 1px solid #35342c;
font-size: 14.5px;
color: #d3d0c5;
line-height: 1.6;
}
.own li::before {
content: "";
flex: none;
width: 12px;
height: 7px;
margin-top: 7px;
border-left: 1.5px solid #8fae9f;
border-bottom: 1.5px solid #8fae9f;
transform: rotate(-45deg);
}
.own b {
color: #fff;
font-weight: 500;
}
/* เครื่องคิดเลขค่าเช่าซอฟต์แวร์ */
.calc {
margin-top: clamp(32px, 4vw, 48px);
border: 1px solid #3a3931;
background: #20201a;
border-radius: var(--radius);
padding: clamp(20px, 3vw, 30px);
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: clamp(20px, 3vw, 40px);
align-items: center;
}
.calc h3 {
color: #fff;
font-size: 18px;
margin-bottom: 6px;
}
.calc p {
font-size: 13.5px;
color: #9d9b91;
}
.calc-slider {
margin-top: 20px;
}
.calc-slider label {
display: flex;
justify-content: space-between;
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #9d9b91;
margin-bottom: 10px;
}
.calc-slider output {
color: #fff;
font-size: 12px;
}
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 2px;
background: #4a493f;
border-radius: 2px;
outline-offset: 10px;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: #ece9df;
border: 3px solid var(--ink);
box-shadow: 0 0 0 1px #8fae9f;
cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: #ece9df;
border: 2px solid #8fae9f;
cursor: pointer;
}
.calc-out {
text-align: right;
}
.calc-out .sum {
font-size: clamp(30px, 3.6vw, 44px);
font-weight: 700;
color: #fff;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
line-height: 1.1;
}
.calc-out .sub {
margin-top: 8px;
font-size: 13.5px;
color: #a9a69b;
}
.calc-bars {
margin-top: 18px;
display: grid;
gap: 10px;
}
.calc-bar {
display: grid;
grid-template-columns: 92px 1fr;
gap: 10px;
align-items: center;
font-size: 12.5px;
color: #9d9b91;
}
.calc-bar i {
display: block;
height: 8px;
border-radius: 2px;
background: #8fae9f;
transform-origin: 0 50%;
transition: transform var(--dur-3) var(--ease-out);
}
.calc-bar.rent i {
background: #c68a5f;
}
/* กล่อง "ทำไมต้องหอ" */
.dorm {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1px;
background: var(--line);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
margin-top: 30px;
}
.dorm > div {
background: var(--surface);
padding: 20px 18px;
}
.dorm h4 {
font-size: 15px;
margin-bottom: 6px;
color: var(--ink);
}
.dorm p {
font-size: 13.5px;
color: var(--ink-soft);
line-height: 1.6;
}
@media (max-width: 1000px) {
.why-grid {
grid-template-columns: 1fr;
}
.evidence {
grid-template-columns: 1fr;
}
.own {
grid-template-columns: 1fr 1fr;
}
.dorm {
grid-template-columns: 1fr 1fr;
}
.calc {
grid-template-columns: 1fr;
}
.calc-out {
text-align: left;
}
}
@media (max-width: 760px) {
.own {
grid-template-columns: 1fr;
}
.fact {
grid-template-columns: 1fr;
gap: 6px;
}
.dorm {
grid-template-columns: 1fr;
}
.marquee-track span {
padding: 11px 16px;
font-size: 10.5px;
}
}
@media (prefers-reduced-motion: reduce) {
.marquee-track {
animation: none;
}
.rotator span {
transition: none;
}
.lift:hover {
transform: none;
}
}
.hero-rotor {
margin-top: 22px;
font-size: clamp(16px, 1.4vw, 17.5px);
color: var(--ink-soft);
}
.hero-rotor .rotator {
font-weight: 500;
color: var(--accent);
}
.why-close {
margin-top: clamp(30px, 4vw, 46px);
font-size: clamp(17px, 1.8vw, 20px);
color: #b6b3a8;
max-width: 64ch;
}
.why-close strong {
color: #fff;
font-weight: 500;
border-bottom: 2px solid #8fae9f;
padding-bottom: 2px;
}