/* DentaSuite — bespoke. FULL-PAGE BENTO GRID: every section is an asymmetric
   mosaic of rounded tiles (radius 20-22, hairline borders, tint rotation,
   hover lift). Real product screenshots live inside the tiles. Warm paper +
   deep teal + mint/mist tints; one ink band. Flat, no gradients. Thai =
   IBM Plex Sans Thai; mono = latin/digits only. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

.ds-hero,.ds-section,.ds-branchband{--ink:#0e1e2b;--body:#3b4657;--teal:#0f766e;--teal-deep:#0b5a54;
  --paper:#faf9f6;--mist:#eef3f1;--mint:#e7f6f1;--line:#dfe5e1;--teal-line:#b9d8d2;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-family:'IBM Plex Sans Thai','IBM Plex Sans',system-ui,sans-serif;color:var(--body)}
.ds-hero *,.ds-section *,.ds-branchband *{box-sizing:border-box}
.ds-hero h1,.ds-section h2,.ds-section h3,.ds-branchband h2{color:var(--ink);margin:0;font-weight:700;letter-spacing:-.02em}
.ds-hero p,.ds-section p{margin:0}
.ds-hero .container,.ds-section .container,.ds-branchband .container{max-width:1120px;margin:0 auto;padding:0 24px;width:100%}

/* ── the tile — one primitive everywhere ────────────────────────────────── */
.ds-tile{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;
  transition:translate .2s ease,border-color .2s ease}
.ds-hero figure,.ds-section figure{margin:0}
.ds-mosaic .ds-tile:hover{translate:0 -4px;border-color:var(--teal)}

/* ── hero — one composition: copy left, product mosaic right ────────────── */
.ds-hero{padding:88px 0 100px;background:var(--paper);min-height:calc(100svh - 84px);display:flex;align-items:center}
.ds-hero-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:56px;align-items:center}
.ds-hero-copy .ds-eyebrow{margin-bottom:20px}
.ds-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;font-weight:600;
  color:var(--teal-deep);background:#fff;border:1px solid var(--teal-line);padding:6px 14px;border-radius:999px;margin-bottom:20px}
.ds-eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal)}
.ds-hero h1{font-size:clamp(2.1rem,3.6vw,3.4rem);line-height:1.2;text-wrap:balance}
.ds-hero-sub{margin-top:22px;font-size:1.1rem;line-height:1.7;max-width:54ch}
.ds-hero-ctas{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.ds-btn{display:inline-block;background:var(--teal);color:#fff;font-weight:700;padding:14px 30px;
  border-radius:999px;border:1px solid var(--teal)}
.ds-btn:hover{background:var(--teal-deep)}
.ds-btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
.ds-btn-ghost:hover{border-color:var(--teal);color:var(--teal-deep)}
.ds-btn-full{width:100%;cursor:pointer;font-size:1rem}

/* hero mosaic: dashboard anchors the left at its true 16:10; journey stepper right */
.ds-mosaic{display:grid;gap:14px}
.ds-mosaic-hero{grid-template-columns:1.5fr 1fr;margin-top:0}
.ds-t-shot img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;object-position:top}
.ds-t-big{display:flex;flex-direction:column;background:#fff}
.ds-t-big-shot{position:relative;display:block}
.ds-t-big img{aspect-ratio:16/9;object-fit:cover;object-position:top}
.ds-shot-bar{display:flex;gap:5px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--paper)}
.ds-shot-bar i{width:8px;height:8px;border-radius:50%;background:var(--teal-line)}
.ds-shot-bar span{font-family:var(--mono);font-size:.68rem;color:#5b6675;margin-left:8px;letter-spacing:.04em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ds-t-shot figcaption{display:flex;align-items:baseline;gap:8px;padding:10px 14px;border-top:1px solid var(--line);background:#fff}
.ds-t-shot figcaption i{font-style:normal;font-family:var(--mono);font-size:.66rem;font-weight:600;color:var(--teal)}
.ds-t-shot figcaption span{font-size:.86rem;font-weight:600;color:var(--ink)}
.ds-t-shot figcaption em{font-style:normal;display:none}
.ds-mosaic-hero .ds-t-shot{display:flex;flex-direction:column}
.ds-t-big{position:relative}
/* stat as a floating badge on the shot — no more empty teal billboard */
.ds-t-badge{position:absolute;right:14px;bottom:14px;display:inline-flex;align-items:center;gap:10px;
  background:#fff;border:1px solid var(--teal-line);border-radius:14px;padding:8px 15px;
  box-shadow:0 10px 26px rgba(14,30,43,.2)}
.ds-t-badge strong{font-family:var(--mono);font-size:1.35rem;font-weight:600;line-height:1;color:var(--teal)}
.ds-t-badge span{font-size:.78rem;font-weight:600;color:var(--ink);line-height:1.35}
/* vertical journey — the flow's true shape; absorbs height, never wraps */
.ds-t-journey{display:flex;flex-direction:column;padding:20px 22px;background:var(--mint);border-color:#cdece6;min-width:0}
.ds-t-journey ol{list-style:none;margin:0;padding:0;flex:1;display:flex;flex-direction:column;
  justify-content:center;gap:10px}
.ds-t-journey li{display:flex;align-items:center;gap:12px;position:relative}
.ds-t-journey li i{flex:none;font-style:normal;font-family:var(--mono);font-size:.7rem;font-weight:600;color:#fff;
  background:var(--teal);border-radius:50%;width:27px;height:27px;display:inline-flex;align-items:center;justify-content:center;z-index:1}
.ds-t-journey li span{font-size:.9rem;font-weight:600;color:var(--ink);line-height:1.35}
.ds-t-journey li:not(:last-child)::after{content:"";position:absolute;left:12px;top:28px;bottom:-11px;
  border-left:2px dashed var(--teal-line)}
.ds-journey-note{margin:12px 0 0;padding-top:10px;border-top:1px solid #cdece6;
  font-size:.78rem;color:#356158;line-height:1.55}

/* ── sections ──────────────────────────────────────────────────────────── */
.ds-section{padding:88px 0;background:var(--paper)}
.ds-tint{background:var(--mist)}
.ds-section h2{font-size:clamp(1.65rem,3.4vw,2.3rem)}
.ds-sub{margin-top:12px;color:#5b6675;max-width:62ch;line-height:1.65}

/* workflow mosaic: 2-1 / 1-1-1 / 3 asymmetry */
.ds-mosaic-steps{grid-template-columns:repeat(3,1fr);margin-top:36px}
.ds-t-step{padding:22px 24px}
.ds-t-step:nth-child(1){grid-column:span 2;background:var(--mint);border-color:#cdece6}
.ds-t-step:nth-child(6){grid-column:span 3;background:var(--mist)}
.ds-step-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ds-step-num{font-family:var(--mono);font-size:.72rem;font-weight:600;color:#fff;background:var(--teal);
  border-radius:50%;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center}
.ds-step-role{font-size:.7rem;font-weight:600;color:var(--teal-deep);background:#fff;
  border:1px solid var(--teal-line);padding:4px 11px;border-radius:999px}
.ds-t-step h3{font-size:1.05rem;margin-top:13px}
.ds-t-step p{color:#5b6675;font-size:.92rem;line-height:1.6;margin-top:7px}

/* screens: ink title tile → tab rail with highlight → one true-aspect viewer */
.ds-screens{margin-top:36px;display:flex;flex-direction:column;gap:14px}
.ds-screens input{position:absolute;opacity:0;pointer-events:none}
.ds-t-title{display:flex;flex-direction:column;justify-content:flex-end;gap:10px;
  padding:24px 26px;background:var(--ink);border-color:var(--ink)}
.ds-t-title h2{color:#fff;font-size:clamp(1.5rem,2.6vw,2rem)}
.ds-t-title p{color:#a9b3c4;font-size:.95rem;line-height:1.5;max-width:44ch}
.ds-t-title a{color:#fff;font-weight:700;font-size:.92rem;text-decoration:underline;text-underline-offset:5px;align-self:flex-start}
.ds-t-title a:hover{color:#9dd8ce}
.ds-tabbar{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.ds-tabbar label{cursor:pointer;white-space:nowrap;font-size:.86rem;font-weight:600;color:var(--ink);
  background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 16px;
  transition:background .15s ease,color .15s ease,border-color .15s ease}
.ds-tabbar label:hover{border-color:var(--teal)}
.ds-screens input:nth-of-type(1):focus-visible ~ .ds-tabbar label[for="dsTab1"],.ds-screens input:nth-of-type(2):focus-visible ~ .ds-tabbar label[for="dsTab2"],.ds-screens input:nth-of-type(3):focus-visible ~ .ds-tabbar label[for="dsTab3"],.ds-screens input:nth-of-type(4):focus-visible ~ .ds-tabbar label[for="dsTab4"],.ds-screens input:nth-of-type(5):focus-visible ~ .ds-tabbar label[for="dsTab5"],.ds-screens input:nth-of-type(6):focus-visible ~ .ds-tabbar label[for="dsTab6"],.ds-screens input:nth-of-type(7):focus-visible ~ .ds-tabbar label[for="dsTab7"],.ds-screens input:nth-of-type(8):focus-visible ~ .ds-tabbar label[for="dsTab8"]{outline:2px solid var(--teal);outline-offset:2px}
.ds-screens input:nth-of-type(1):checked ~ .ds-tabbar label[for="dsTab1"],
.ds-screens input:nth-of-type(2):checked ~ .ds-tabbar label[for="dsTab2"],
.ds-screens input:nth-of-type(3):checked ~ .ds-tabbar label[for="dsTab3"],
.ds-screens input:nth-of-type(4):checked ~ .ds-tabbar label[for="dsTab4"],
.ds-screens input:nth-of-type(5):checked ~ .ds-tabbar label[for="dsTab5"],
.ds-screens input:nth-of-type(6):checked ~ .ds-tabbar label[for="dsTab6"],
.ds-screens input:nth-of-type(7):checked ~ .ds-tabbar label[for="dsTab7"],
.ds-screens input:nth-of-type(8):checked ~ .ds-tabbar label[for="dsTab8"]{background:var(--teal);border-color:var(--teal);color:#fff}
.ds-panel{display:none}
.ds-panel img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;object-position:top;border-bottom:1px solid var(--line)}
.ds-panel figcaption{display:grid;grid-template-columns:auto 280px 1fr;gap:6px 22px;align-items:baseline;padding:18px 22px}
.ds-panel figcaption>i{font-style:normal;font-family:var(--mono);font-size:.72rem;font-weight:600;color:var(--teal)}
.ds-panel figcaption h3{font-size:1.08rem}
.ds-panel figcaption p{grid-row:2;grid-column:2 / 4;color:#5b6675;font-size:.9rem;line-height:1.6}
.ds-screens input:nth-of-type(1):checked ~ .ds-panels .ds-panel:nth-of-type(1),
.ds-screens input:nth-of-type(2):checked ~ .ds-panels .ds-panel:nth-of-type(2),
.ds-screens input:nth-of-type(3):checked ~ .ds-panels .ds-panel:nth-of-type(3),
.ds-screens input:nth-of-type(4):checked ~ .ds-panels .ds-panel:nth-of-type(4),
.ds-screens input:nth-of-type(5):checked ~ .ds-panels .ds-panel:nth-of-type(5),
.ds-screens input:nth-of-type(6):checked ~ .ds-panels .ds-panel:nth-of-type(6),
.ds-screens input:nth-of-type(7):checked ~ .ds-panels .ds-panel:nth-of-type(7),
.ds-screens input:nth-of-type(8):checked ~ .ds-panels .ds-panel:nth-of-type(8){display:block}
.ds-panel-text{padding:24px 26px}
.ds-panel-text i{font-family:var(--mono);font-style:normal;font-size:.74rem;font-weight:600;color:var(--teal)}
.ds-panel-text h3{margin-top:8px}
.ds-panel-text p{color:#5b6675;font-size:.92rem;line-height:1.6;margin-top:6px}
.ds-t-text{padding:20px 22px}
.ds-t-text i{font-family:var(--mono);font-style:normal;font-size:.72rem;font-weight:600;color:var(--teal)}
.ds-t-text h3{font-size:1rem;margin-top:8px}
.ds-t-text p{color:#5b6675;font-size:.88rem;line-height:1.55;margin-top:6px}

/* teams mosaic */
.ds-mosaic-teams{grid-template-columns:repeat(3,1fr);margin-top:40px}
.ds-t-team{padding:0;display:flex;flex-direction:column}
.ds-t-team:nth-child(2){background:var(--mint);border-color:#b9d8d2}
.ds-team-shot{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;object-position:top;
  border-bottom:1px solid var(--line)}
.ds-team-body{padding:20px 22px;flex:1}
.ds-t-team h3{font-size:1.04rem;display:flex;align-items:center;gap:10px}
.ds-t-team h3::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--teal)}
.ds-team-body ul{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.ds-t-team li{position:relative;padding-left:22px;color:var(--body);font-size:.92rem;line-height:1.5}
.ds-t-team li::before{content:"–";position:absolute;left:0;color:var(--teal)}

/* branches — ink band, dark tiles */
.ds-branchband{background:var(--ink);padding:88px 0}
.ds-branch{display:grid;grid-template-columns:1fr 1.4fr;gap:48px;align-items:start}
.ds-branchband h2{color:#fff;font-size:clamp(1.65rem,3.4vw,2.3rem);max-width:18ch}
.ds-mosaic-branch{grid-template-columns:1fr 1fr}
.ds-t-branch{background:#16233a;border-color:#263652;color:#c6cfdd;padding:17px 18px 17px 48px;
  font-size:.93rem;line-height:1.55;position:relative}
.ds-t-branch::before{content:"✓";position:absolute;left:15px;top:16px;width:21px;height:21px;background:var(--teal);
  color:#fff;font-size:.68rem;font-weight:700;border-radius:50%;display:flex;align-items:center;justify-content:center}

/* faq mosaic */
.ds-mosaic-faq{grid-template-columns:1fr 1fr;margin-top:32px}
.ds-faq{padding:4px 20px}
.ds-faq:nth-child(1){grid-column:span 2;background:var(--mint);border-color:#cdece6}
.ds-faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;
  gap:16px;padding:16px 0;font-weight:600;color:var(--ink);font-size:.98rem}
.ds-faq summary::-webkit-details-marker{display:none}
.ds-faq summary::after{content:"+";font-family:var(--mono);color:var(--teal);font-size:1.1rem;line-height:1}
.ds-faq[open] summary::after{content:"–"}
.ds-faq[open]{border-color:var(--teal)}
.ds-faq p{color:#5b6675;font-size:.92rem;line-height:1.6;padding:0 0 17px;max-width:70ch}

/* contact — mist band, form tile */
.ds-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.ds-form{padding:28px}
.ds-field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px}
.ds-field span{font-size:.85rem;font-weight:600;color:var(--ink)}
.ds-req{font-style:normal;color:#c2410c;margin-left:3px}
.ds-field input{border:1px solid var(--line);border-radius:10px;padding:11px 14px;font:inherit;font-size:.95rem;background:#fff;color:var(--ink)}
.ds-field input:focus{outline:2px solid var(--teal);outline-offset:1px}
.ds-flash{padding:11px 14px;border-radius:10px;font-size:.9rem;font-weight:600;margin-bottom:15px}
.ds-flash-ok{background:var(--mint);color:var(--teal-deep);border:1px solid var(--teal)}
.ds-flash-err{background:#fef2f2;color:#b91c1c;border:1px solid #dc2626}
.ds-hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}

/* motion — same gate + easing as the platform */
body.motion .ds-hero [data-rv],body.motion .ds-section [data-rv],body.motion .ds-branchband [data-rv]{opacity:0;translate:0 16px}
body.motion .ds-hero [data-rv].in,body.motion .ds-section [data-rv].in,body.motion .ds-branchband [data-rv].in{opacity:1;translate:0 0;
  transition:opacity .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms),translate .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms)}

@media(max-width:1000px){
  .ds-hero-grid{grid-template-columns:1fr;gap:44px}
  .ds-mosaic-hero{grid-template-columns:1.5fr 1fr}
  .ds-t-big img{aspect-ratio:16/9;flex:none}
  .ds-mosaic-hero .ds-t-shot img{aspect-ratio:16/9;flex:none}
}
@media(max-width:640px){
  .ds-mosaic-hero{grid-template-columns:1fr}
  .ds-t-big{grid-row:span 1}
}
@media(max-width:960px){
  .ds-mosaic-hero .ds-t-shot img{aspect-ratio:16/9}
  .ds-mosaic-steps{grid-template-columns:1fr 1fr}
  .ds-t-step:nth-child(1),.ds-t-step:nth-child(6){grid-column:span 2}
  .ds-mosaic-screens{grid-template-columns:1fr 1fr}
  .ds-t-title,.ds-mosaic-screens .ds-t-shot:nth-child(2),.ds-mosaic-screens .ds-t-shot:nth-child(6),
  .ds-mosaic-screens .ds-t-shot:nth-child(9){grid-column:span 2;grid-row:span 1}
  .ds-mosaic-teams{grid-template-columns:1fr}
  .ds-branch{grid-template-columns:1fr;gap:30px}
  .ds-mosaic-faq{grid-template-columns:1fr}
  .ds-faq:nth-child(1){grid-column:span 1}
  .ds-contact-grid{grid-template-columns:1fr;gap:36px}
  .ds-panel figcaption{grid-template-columns:auto 1fr}
  .ds-panel figcaption p{grid-column:1 / 3}
}
@media(max-width:600px){
  .ds-mosaic-hero,.ds-mosaic-steps,.ds-mosaic-screens{grid-template-columns:1fr}
  .ds-t-big,.ds-t-step:nth-child(1),.ds-t-step:nth-child(6),
  .ds-t-title,.ds-mosaic-screens .ds-t-shot:nth-child(2),.ds-mosaic-screens .ds-t-shot:nth-child(6),
  .ds-mosaic-screens .ds-t-shot:nth-child(9){grid-column:span 1}
  .ds-mosaic-branch{grid-template-columns:1fr}
}
